<?php

namespace teamug;

class Templates {
  
  private $templateDirectory='';
  private $templates='';
  

  private function __construct() {}
  
  
  public static function getSingleton
  
  $templateDirectory, $mainTemplate) {
    $this->templateDirectory = $templateDirectory;
    $this->mainTemplate = $templateDirectory.'/'.$mainTemplate;
  }

  
  public function getMainTemplate() {
    return $this->mainTemplate;
  }


  /**
   * @todo Check file exists
   */
  public function addTemplate($name, $filePath) {
    $this->templates[$name] = $this->templateDirectory.'/'.$filePath;
  }


  public function getTemplate($name) {
    return $this->templates[$name];
  }
  
}
